<UL>
    <!--[foreach from=$objectArray item=item]-->
    <!--[assign var='categories_id' value=$item.id]-->
    <LI><A HREF="<!--[pnmodurl modname='IShopStore'
                                      type='user'
                                      func='list'
                                      ctrl='Item'
                                      type_search='categories'
                                      categories_id=$item.id
                        ]-->"><!--[$item.name]--></A><span>(<!--[count_from_db table="ishopstore_item" group_by="itm_categories_id" where="itm_categories_id = '$categories_id'"]-->)</span>
    <!--[/foreach]-->
</UL>